<div class="modal fade" id="modal-login" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog" style="margin-top:200px;width:280px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">登录或注册</h4>
            </div>
            <div class="modal-body">
                <div class="login-form">
                    <form class="login-item hide" id="login-item-login">
                        <h5><small evt="login.to.reg"><span class="glyphicon glyphicon-share-alt"></span> 注册</small>登录</h5>
                        <h6>
                            <label for="inputName">帐号</label>
                            <input type="text" name="username" class="form-control" id="inputName" placeholder="设置帐号">
                        </h6>
                        <h6>
                            <label for="inputPassword">密码</label>
                            <input type="password" name="password" class="form-control" id="inputPassword" placeholder="登录密码">
                        </h6>

                        <div class="login-submit">
                            <input type="hidden" name="formhash" value="{FORMHASH}" />
                            <input type="hidden" name="referer" value="$_G['referer']" />
                            <input type="button" class="btn" evt="login.submit" name="submit" value="登录">
                            <input type="hidden" name="action" value="signin">
                            <label><input type="checkbox" checked="checked" name="remember" value="forever">记住我</label>
                        </div>
                    </form>

                    <form class="login-item hide" id="login-item-reg">
                        <h5><small evt="login.to.login"><span class="  glyphicon glyphicon-share-alt"></span> 登录</small>注册</h5>
                        <h6>
                        <label for="inputName">帐号</label>
                        <input type="text" name="username" class="form-control" id="inputName" placeholder="设置帐号">
                        </h6>
                        <h6>
                        <label for="inputEmail">邮箱</label>
                        <input type="email" name="email" class="form-control" id="inputEmail" placeholder="邮箱">
                        </h6>

                        <h6>
                        <label for="inputPassword">密码</label>
                        <input type="password" name="password" class="form-control" id="inputPassword" placeholder="设置登录密码">
                        </h6>

                        <div class="login-submit">
                            <input type="hidden" name="formhash" value="{FORMHASH}" />
                            <input type="hidden" name="referer" value="$_G['referer']" />
                            <input type="button" class="btn" evt="login.submit" name="submit" value="快速注册">
                            <input type="hidden" name="action" value="signup">
                        </div>
                    </form>
                    <div class="login-tips"></div>

                </div>
            </div>
        </div>
    </div>
</div>